using System;
using System.Security.Cryptography;
using System.Text;

public class Hash
{
	public static string getHashSha256(string text)
	{
		byte[] bytes = Encoding.UTF8.GetBytes(text);
		SHA256Managed sHA256Managed = new SHA256Managed();
		byte[] inArray = sHA256Managed.ComputeHash(bytes);
		return Convert.ToBase64String(inArray);
	}
}
